package javaapplicationswing;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author henrique
 */
public class Contador implements ActionListener
{
  private int cont;
  public Contador(int c)
  {
   cont = c;
  }
  public void actionPerformed(ActionEvent e)
  {
   System.out.println(cont++);
  }
  public int getCont()
  {
   return cont;
  }
}
